﻿/************************************************************************************  
' Copyright (C) 2008 Anthony Bouch (http://www.58bits.com) under the terms of the
' Microsoft Public License (Ms-PL http://www.codeplex.com/precode/license)
'***********************************************************************************/
using System;
using System.Windows.Forms;
using PreCodePlugin.Properties;

namespace PreCodePlugin
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run();
            PreCodeWindow main = new PreCodeWindow(new PreCodeWindowsSettings(), PreCodeWindow.Mode.StandAlone);
            DialogResult result = main.ShowDialog();
            if (result == DialogResult.OK)
            {
                System.Diagnostics.Debug.WriteLine("OK");
                Clipboard.SetText(main.Content);
            }
            else
            {
                System.Diagnostics.Debug.WriteLine("Not OK");
            }

            WinFormSettings.Default.Save();
        }
    }
}
